package com.movitech.mobile.cz.base.purchase.service;

import com.baomidou.mybatisplus.service.IService;
import com.movitech.mobile.cz.base.purchase.entity.PSpOverallPlanDetail;

import java.util.List;

/**
 * <p>
 * 战略采购年度总规划-详情 服务类
 * </p>
 *
 * @author Movitech Mobile
 * @since 2018-03-15
 */
public interface PSpOverallPlanDetailService extends IService<PSpOverallPlanDetail> {
    boolean addOrReduceurchasedAmount(Double amount ,String id);
    List<PSpOverallPlanDetail> selectByEntity(PSpOverallPlanDetail pSpOverallPlanDetail);
    void updatePlanStatusByYear(Integer oldStatus,Integer newStatus,Integer year);
    void updatePlanStatusByYearNotIn(Integer oldStatus,Integer newStatus,Integer year);
}
